/**
 * Created by solaman on 2017/5/4.
 */

Vue.component('message',{
    props:['title','body'],
    template:`
        <article class="message">
        <div class="message-header">
            <p>{{ title }}</p>
            <button class="delete"></button>
        </div>
        <div class="message-body">
            {{ body }}
        </div>
    </article>
    `
})
let app = new Vue({

    el: '#root'
})